This method returns the currently selected item in the matrix if there is only one selected, other wise it creates a ItemList object, fills it with the selected items, and returns it. The caller does not need to free the returned List because it is kept as a static internal to this method.
*/
{
return ( [matrix selection] );
}
- selectionList
/*
This method is like the -selection method, but it always returns an ItemList object., that must be freed by the caller
Searches the cells by filename, looking for the first cell beginning with/ the selected key. Search is not case sensitive. If a cell is found, it is selected.
*/
{
int count, row;
id list = [matrix cellList];
id cell;
const char *filename;
char match[21];
/*
Determime if selectFile needs to be reset
*/
if ( time-lastTime > KEY_TRAP_INTERVAL ) {
selectKey = 0;
strcpy ( selectFile, "" );
}
lastTime = time;
// Convert charCode to upper case for case-insensitive matching